package com.wangjie.simple;

import java.util.HashSet;
import java.util.Set;

/**
 * @author jieshao
 * @date 2022/5/31 11:19
 *
 * 1832. 判断句子是否为全字母句
 */
public class Test16 {
    public static void main(String[] args) {
        String s = "thequickbrownfoxjumpsoverthelazydog";
        boolean res = checkIfPangram(s);
        System.out.println(res);
    }

    public static boolean checkIfPangram(String sentence) {
        Set<Character> set = new HashSet<>();
        for (int i = 0; i < sentence.length(); i++) {
            set.add(sentence.charAt(i));
        }
        return set.size() == 26;
    }
}